<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="en" />
        <link href="./assets/ffd55088/css/bootstrap.css" rel="stylesheet">
<link href="./assets/5cf9384a/solarized_light.css" rel="stylesheet">
<link href="./assets/6c54116e/style.css" rel="stylesheet">
<script src="./assets/a44cef0f/jquery.js"></script>
<script src="./assets/ffd55088/js/bootstrap.js"></script>
<script src="./assets/8ac4e28a/jssearch.js"></script>    <title>DbManager, yii\rbac\DbManager - Yii Framework 2.0 API Documentation</title>
</head>
<body>

<div class="wrap">
    <nav id="w7477" class="navbar-inverse navbar-fixed-top navbar" role="navigation"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w7477-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button><a class="navbar-brand" href="./index.html">Yii Framework 2.0 API Documentation</a></div><div id="w7477-collapse" class="collapse navbar-collapse"><ul id="w7478" class="navbar-nav nav"><li><a href="./index.html">Class reference</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Extensions <b class="caret"></b></a><ul id="w7479" class="dropdown-menu"><li><a href="./ext-apidoc-index.html" tabindex="-1">apidoc</a></li>
<li><a href="./ext-authclient-index.html" tabindex="-1">authclient</a></li>
<li><a href="./ext-bootstrap-index.html" tabindex="-1">bootstrap</a></li>
<li><a href="./ext-codeception-index.html" tabindex="-1">codeception</a></li>
<li><a href="./ext-debug-index.html" tabindex="-1">debug</a></li>
<li><a href="./ext-elasticsearch-index.html" tabindex="-1">elasticsearch</a></li>
<li><a href="./ext-faker-index.html" tabindex="-1">faker</a></li>
<li><a href="./ext-gii-index.html" tabindex="-1">gii</a></li>
<li><a href="./ext-imagine-index.html" tabindex="-1">imagine</a></li>
<li><a href="./ext-jui-index.html" tabindex="-1">jui</a></li>
<li><a href="./ext-mongodb-index.html" tabindex="-1">mongodb</a></li>
<li><a href="./ext-redis-index.html" tabindex="-1">redis</a></li>
<li><a href="./ext-smarty-index.html" tabindex="-1">smarty</a></li>
<li><a href="./ext-sphinx-index.html" tabindex="-1">sphinx</a></li>
<li><a href="./ext-swiftmailer-index.html" tabindex="-1">swiftmailer</a></li>
<li><a href="./ext-twig-index.html" tabindex="-1">twig</a></li></ul></li>
<li><a href="./guide-README.html">Guide</a></li></ul><div class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input id="searchbox" type="text" class="form-control" placeholder="Search">
  </div>
</div>
</div></nav>
    <div id="search-resultbox" style="display: none;" class="modal-content">
        <ul id="search-results">
        </ul>
    </div>

    
<div class="row">
    <div class="col-md-3">
                <div id="navigation" class="list-group"><a class="list-group-item" href="#navigation-7446" data-toggle="collapse" data-parent="#navigation">Not namespaced classes <b class="caret"></b></a><div id="navigation-7446" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii.html">Yii</a></div>
<a class="list-group-item" href="#navigation-7447" data-toggle="collapse" data-parent="#navigation">yii <b class="caret"></b></a><div id="navigation-7447" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-baseyii.html">BaseYii</a></div>
<a class="list-group-item" href="#navigation-7448" data-toggle="collapse" data-parent="#navigation">yii\base <b class="caret"></b></a><div id="navigation-7448" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-base-action.html">Action</a>
<a class="list-group-item" href="./yii-base-actionevent.html">ActionEvent</a>
<a class="list-group-item" href="./yii-base-actionfilter.html">ActionFilter</a>
<a class="list-group-item" href="./yii-base-application.html">Application</a>
<a class="list-group-item" href="./yii-base-arrayaccesstrait.html">ArrayAccessTrait</a>
<a class="list-group-item" href="./yii-base-arrayable.html">Arrayable</a>
<a class="list-group-item" href="./yii-base-arrayabletrait.html">ArrayableTrait</a>
<a class="list-group-item" href="./yii-base-behavior.html">Behavior</a>
<a class="list-group-item" href="./yii-base-bootstrapinterface.html">BootstrapInterface</a>
<a class="list-group-item" href="./yii-base-component.html">Component</a>
<a class="list-group-item" href="./yii-base-configurable.html">Configurable</a>
<a class="list-group-item" href="./yii-base-controller.html">Controller</a>
<a class="list-group-item" href="./yii-base-dynamicmodel.html">DynamicModel</a>
<a class="list-group-item" href="./yii-base-errorexception.html">ErrorException</a>
<a class="list-group-item" href="./yii-base-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-base-event.html">Event</a>
<a class="list-group-item" href="./yii-base-exception.html">Exception</a>
<a class="list-group-item" href="./yii-base-exitexception.html">ExitException</a>
<a class="list-group-item" href="./yii-base-inlineaction.html">InlineAction</a>
<a class="list-group-item" href="./yii-base-invalidcallexception.html">InvalidCallException</a>
<a class="list-group-item" href="./yii-base-invalidconfigexception.html">InvalidConfigException</a>
<a class="list-group-item" href="./yii-base-invalidparamexception.html">InvalidParamException</a>
<a class="list-group-item" href="./yii-base-invalidrouteexception.html">InvalidRouteException</a>
<a class="list-group-item" href="./yii-base-invalidvalueexception.html">InvalidValueException</a>
<a class="list-group-item" href="./yii-base-model.html">Model</a>
<a class="list-group-item" href="./yii-base-modelevent.html">ModelEvent</a>
<a class="list-group-item" href="./yii-base-module.html">Module</a>
<a class="list-group-item" href="./yii-base-notsupportedexception.html">NotSupportedException</a>
<a class="list-group-item" href="./yii-base-object.html">Object</a>
<a class="list-group-item" href="./yii-base-request.html">Request</a>
<a class="list-group-item" href="./yii-base-response.html">Response</a>
<a class="list-group-item" href="./yii-base-security.html">Security</a>
<a class="list-group-item" href="./yii-base-theme.html">Theme</a>
<a class="list-group-item" href="./yii-base-unknownclassexception.html">UnknownClassException</a>
<a class="list-group-item" href="./yii-base-unknownmethodexception.html">UnknownMethodException</a>
<a class="list-group-item" href="./yii-base-unknownpropertyexception.html">UnknownPropertyException</a>
<a class="list-group-item" href="./yii-base-userexception.html">UserException</a>
<a class="list-group-item" href="./yii-base-view.html">View</a>
<a class="list-group-item" href="./yii-base-viewcontextinterface.html">ViewContextInterface</a>
<a class="list-group-item" href="./yii-base-viewevent.html">ViewEvent</a>
<a class="list-group-item" href="./yii-base-viewrenderer.html">ViewRenderer</a>
<a class="list-group-item" href="./yii-base-widget.html">Widget</a></div>
<a class="list-group-item" href="#navigation-7449" data-toggle="collapse" data-parent="#navigation">yii\behaviors <b class="caret"></b></a><div id="navigation-7449" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-behaviors-attributebehavior.html">AttributeBehavior</a>
<a class="list-group-item" href="./yii-behaviors-blameablebehavior.html">BlameableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-sluggablebehavior.html">SluggableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-timestampbehavior.html">TimestampBehavior</a></div>
<a class="list-group-item" href="#navigation-7450" data-toggle="collapse" data-parent="#navigation">yii\caching <b class="caret"></b></a><div id="navigation-7450" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-caching-apccache.html">ApcCache</a>
<a class="list-group-item" href="./yii-caching-arraycache.html">ArrayCache</a>
<a class="list-group-item" href="./yii-caching-cache.html">Cache</a>
<a class="list-group-item" href="./yii-caching-chaineddependency.html">ChainedDependency</a>
<a class="list-group-item" href="./yii-caching-dbcache.html">DbCache</a>
<a class="list-group-item" href="./yii-caching-dbdependency.html">DbDependency</a>
<a class="list-group-item" href="./yii-caching-dependency.html">Dependency</a>
<a class="list-group-item" href="./yii-caching-dummycache.html">DummyCache</a>
<a class="list-group-item" href="./yii-caching-expressiondependency.html">ExpressionDependency</a>
<a class="list-group-item" href="./yii-caching-filecache.html">FileCache</a>
<a class="list-group-item" href="./yii-caching-filedependency.html">FileDependency</a>
<a class="list-group-item" href="./yii-caching-memcache.html">MemCache</a>
<a class="list-group-item" href="./yii-caching-memcacheserver.html">MemCacheServer</a>
<a class="list-group-item" href="./yii-caching-tagdependency.html">TagDependency</a>
<a class="list-group-item" href="./yii-caching-wincache.html">WinCache</a>
<a class="list-group-item" href="./yii-caching-xcache.html">XCache</a>
<a class="list-group-item" href="./yii-caching-zenddatacache.html">ZendDataCache</a></div>
<a class="list-group-item" href="#navigation-7451" data-toggle="collapse" data-parent="#navigation">yii\captcha <b class="caret"></b></a><div id="navigation-7451" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-captcha-captcha.html">Captcha</a>
<a class="list-group-item" href="./yii-captcha-captchaaction.html">CaptchaAction</a>
<a class="list-group-item" href="./yii-captcha-captchaasset.html">CaptchaAsset</a>
<a class="list-group-item" href="./yii-captcha-captchavalidator.html">CaptchaValidator</a></div>
<a class="list-group-item" href="#navigation-7452" data-toggle="collapse" data-parent="#navigation">yii\console <b class="caret"></b></a><div id="navigation-7452" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-application.html">Application</a>
<a class="list-group-item" href="./yii-console-controller.html">Controller</a>
<a class="list-group-item" href="./yii-console-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-console-exception.html">Exception</a>
<a class="list-group-item" href="./yii-console-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-console-request.html">Request</a>
<a class="list-group-item" href="./yii-console-response.html">Response</a></div>
<a class="list-group-item" href="#navigation-7453" data-toggle="collapse" data-parent="#navigation">yii\console\controllers <b class="caret"></b></a><div id="navigation-7453" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-controllers-assetcontroller.html">AssetController</a>
<a class="list-group-item" href="./yii-console-controllers-basemigratecontroller.html">BaseMigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-cachecontroller.html">CacheController</a>
<a class="list-group-item" href="./yii-console-controllers-fixturecontroller.html">FixtureController</a>
<a class="list-group-item" href="./yii-console-controllers-helpcontroller.html">HelpController</a>
<a class="list-group-item" href="./yii-console-controllers-messagecontroller.html">MessageController</a>
<a class="list-group-item" href="./yii-console-controllers-migratecontroller.html">MigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-servecontroller.html">ServeController</a></div>
<a class="list-group-item" href="#navigation-7454" data-toggle="collapse" data-parent="#navigation">yii\data <b class="caret"></b></a><div id="navigation-7454" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-data-activedataprovider.html">ActiveDataProvider</a>
<a class="list-group-item" href="./yii-data-arraydataprovider.html">ArrayDataProvider</a>
<a class="list-group-item" href="./yii-data-basedataprovider.html">BaseDataProvider</a>
<a class="list-group-item" href="./yii-data-dataproviderinterface.html">DataProviderInterface</a>
<a class="list-group-item" href="./yii-data-pagination.html">Pagination</a>
<a class="list-group-item" href="./yii-data-sort.html">Sort</a>
<a class="list-group-item" href="./yii-data-sqldataprovider.html">SqlDataProvider</a></div>
<a class="list-group-item" href="#navigation-7455" data-toggle="collapse" data-parent="#navigation">yii\db <b class="caret"></b></a><div id="navigation-7455" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-activequery.html">ActiveQuery</a>
<a class="list-group-item" href="./yii-db-activequeryinterface.html">ActiveQueryInterface</a>
<a class="list-group-item" href="./yii-db-activequerytrait.html">ActiveQueryTrait</a>
<a class="list-group-item" href="./yii-db-activerecord.html">ActiveRecord</a>
<a class="list-group-item" href="./yii-db-activerecordinterface.html">ActiveRecordInterface</a>
<a class="list-group-item" href="./yii-db-activerelationtrait.html">ActiveRelationTrait</a>
<a class="list-group-item" href="./yii-db-aftersaveevent.html">AfterSaveEvent</a>
<a class="list-group-item" href="./yii-db-baseactiverecord.html">BaseActiveRecord</a>
<a class="list-group-item" href="./yii-db-batchqueryresult.html">BatchQueryResult</a>
<a class="list-group-item" href="./yii-db-columnschema.html">ColumnSchema</a>
<a class="list-group-item" href="./yii-db-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-command.html">Command</a>
<a class="list-group-item" href="./yii-db-connection.html">Connection</a>
<a class="list-group-item" href="./yii-db-datareader.html">DataReader</a>
<a class="list-group-item" href="./yii-db-exception.html">Exception</a>
<a class="list-group-item" href="./yii-db-expression.html">Expression</a>
<a class="list-group-item" href="./yii-db-integrityexception.html">IntegrityException</a>
<a class="list-group-item" href="./yii-db-migration.html">Migration</a>
<a class="list-group-item" href="./yii-db-migrationinterface.html">MigrationInterface</a>
<a class="list-group-item" href="./yii-db-query.html">Query</a>
<a class="list-group-item" href="./yii-db-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-queryinterface.html">QueryInterface</a>
<a class="list-group-item" href="./yii-db-querytrait.html">QueryTrait</a>
<a class="list-group-item" href="./yii-db-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-schemabuildertrait.html">SchemaBuilderTrait</a>
<a class="list-group-item" href="./yii-db-staleobjectexception.html">StaleObjectException</a>
<a class="list-group-item" href="./yii-db-tableschema.html">TableSchema</a>
<a class="list-group-item" href="./yii-db-transaction.html">Transaction</a></div>
<a class="list-group-item" href="#navigation-7456" data-toggle="collapse" data-parent="#navigation">yii\db\cubrid <b class="caret"></b></a><div id="navigation-7456" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-cubrid-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-7457" data-toggle="collapse" data-parent="#navigation">yii\db\mssql <b class="caret"></b></a><div id="navigation-7457" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mssql-pdo.html">PDO</a>
<a class="list-group-item" href="./yii-db-mssql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mssql-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-mssql-sqlsrvpdo.html">SqlsrvPDO</a>
<a class="list-group-item" href="./yii-db-mssql-tableschema.html">TableSchema</a></div>
<a class="list-group-item" href="#navigation-7458" data-toggle="collapse" data-parent="#navigation">yii\db\mysql <b class="caret"></b></a><div id="navigation-7458" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mysql-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-7459" data-toggle="collapse" data-parent="#navigation">yii\db\oci <b class="caret"></b></a><div id="navigation-7459" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-oci-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-oci-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-oci-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-7460" data-toggle="collapse" data-parent="#navigation">yii\db\pgsql <b class="caret"></b></a><div id="navigation-7460" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-pgsql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-pgsql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-7461" data-toggle="collapse" data-parent="#navigation">yii\db\sqlite <b class="caret"></b></a><div id="navigation-7461" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-sqlite-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-7462" data-toggle="collapse" data-parent="#navigation">yii\di <b class="caret"></b></a><div id="navigation-7462" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-di-container.html">Container</a>
<a class="list-group-item" href="./yii-di-instance.html">Instance</a>
<a class="list-group-item" href="./yii-di-notinstantiableexception.html">NotInstantiableException</a>
<a class="list-group-item" href="./yii-di-servicelocator.html">ServiceLocator</a></div>
<a class="list-group-item" href="#navigation-7463" data-toggle="collapse" data-parent="#navigation">yii\filters <b class="caret"></b></a><div id="navigation-7463" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-accesscontrol.html">AccessControl</a>
<a class="list-group-item" href="./yii-filters-accessrule.html">AccessRule</a>
<a class="list-group-item" href="./yii-filters-contentnegotiator.html">ContentNegotiator</a>
<a class="list-group-item" href="./yii-filters-cors.html">Cors</a>
<a class="list-group-item" href="./yii-filters-httpcache.html">HttpCache</a>
<a class="list-group-item" href="./yii-filters-pagecache.html">PageCache</a>
<a class="list-group-item" href="./yii-filters-ratelimitinterface.html">RateLimitInterface</a>
<a class="list-group-item" href="./yii-filters-ratelimiter.html">RateLimiter</a>
<a class="list-group-item" href="./yii-filters-verbfilter.html">VerbFilter</a></div>
<a class="list-group-item" href="#navigation-7464" data-toggle="collapse" data-parent="#navigation">yii\filters\auth <b class="caret"></b></a><div id="navigation-7464" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-auth-authinterface.html">AuthInterface</a>
<a class="list-group-item" href="./yii-filters-auth-authmethod.html">AuthMethod</a>
<a class="list-group-item" href="./yii-filters-auth-compositeauth.html">CompositeAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbasicauth.html">HttpBasicAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbearerauth.html">HttpBearerAuth</a>
<a class="list-group-item" href="./yii-filters-auth-queryparamauth.html">QueryParamAuth</a></div>
<a class="list-group-item" href="#navigation-7465" data-toggle="collapse" data-parent="#navigation">yii\grid <b class="caret"></b></a><div id="navigation-7465" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-grid-actioncolumn.html">ActionColumn</a>
<a class="list-group-item" href="./yii-grid-checkboxcolumn.html">CheckboxColumn</a>
<a class="list-group-item" href="./yii-grid-column.html">Column</a>
<a class="list-group-item" href="./yii-grid-datacolumn.html">DataColumn</a>
<a class="list-group-item" href="./yii-grid-gridview.html">GridView</a>
<a class="list-group-item" href="./yii-grid-gridviewasset.html">GridViewAsset</a>
<a class="list-group-item" href="./yii-grid-serialcolumn.html">SerialColumn</a></div>
<a class="list-group-item" href="#navigation-7466" data-toggle="collapse" data-parent="#navigation">yii\helpers <b class="caret"></b></a><div id="navigation-7466" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-helpers-arrayhelper.html">ArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-basearrayhelper.html">BaseArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-baseconsole.html">BaseConsole</a>
<a class="list-group-item" href="./yii-helpers-basefilehelper.html">BaseFileHelper</a>
<a class="list-group-item" href="./yii-helpers-baseformatconverter.html">BaseFormatConverter</a>
<a class="list-group-item" href="./yii-helpers-basehtml.html">BaseHtml</a>
<a class="list-group-item" href="./yii-helpers-basehtmlpurifier.html">BaseHtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-baseinflector.html">BaseInflector</a>
<a class="list-group-item" href="./yii-helpers-basejson.html">BaseJson</a>
<a class="list-group-item" href="./yii-helpers-basemarkdown.html">BaseMarkdown</a>
<a class="list-group-item" href="./yii-helpers-basestringhelper.html">BaseStringHelper</a>
<a class="list-group-item" href="./yii-helpers-baseurl.html">BaseUrl</a>
<a class="list-group-item" href="./yii-helpers-basevardumper.html">BaseVarDumper</a>
<a class="list-group-item" href="./yii-helpers-console.html">Console</a>
<a class="list-group-item" href="./yii-helpers-filehelper.html">FileHelper</a>
<a class="list-group-item" href="./yii-helpers-formatconverter.html">FormatConverter</a>
<a class="list-group-item" href="./yii-helpers-html.html">Html</a>
<a class="list-group-item" href="./yii-helpers-htmlpurifier.html">HtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-inflector.html">Inflector</a>
<a class="list-group-item" href="./yii-helpers-json.html">Json</a>
<a class="list-group-item" href="./yii-helpers-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-helpers-stringhelper.html">StringHelper</a>
<a class="list-group-item" href="./yii-helpers-url.html">Url</a>
<a class="list-group-item" href="./yii-helpers-vardumper.html">VarDumper</a></div>
<a class="list-group-item" href="#navigation-7467" data-toggle="collapse" data-parent="#navigation">yii\i18n <b class="caret"></b></a><div id="navigation-7467" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-i18n-dbmessagesource.html">DbMessageSource</a>
<a class="list-group-item" href="./yii-i18n-formatter.html">Formatter</a>
<a class="list-group-item" href="./yii-i18n-gettextfile.html">GettextFile</a>
<a class="list-group-item" href="./yii-i18n-gettextmessagesource.html">GettextMessageSource</a>
<a class="list-group-item" href="./yii-i18n-gettextmofile.html">GettextMoFile</a>
<a class="list-group-item" href="./yii-i18n-gettextpofile.html">GettextPoFile</a>
<a class="list-group-item" href="./yii-i18n-i18n.html">I18N</a>
<a class="list-group-item" href="./yii-i18n-messageformatter.html">MessageFormatter</a>
<a class="list-group-item" href="./yii-i18n-messagesource.html">MessageSource</a>
<a class="list-group-item" href="./yii-i18n-missingtranslationevent.html">MissingTranslationEvent</a>
<a class="list-group-item" href="./yii-i18n-phpmessagesource.html">PhpMessageSource</a></div>
<a class="list-group-item" href="#navigation-7468" data-toggle="collapse" data-parent="#navigation">yii\log <b class="caret"></b></a><div id="navigation-7468" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-log-dbtarget.html">DbTarget</a>
<a class="list-group-item" href="./yii-log-dispatcher.html">Dispatcher</a>
<a class="list-group-item" href="./yii-log-emailtarget.html">EmailTarget</a>
<a class="list-group-item" href="./yii-log-filetarget.html">FileTarget</a>
<a class="list-group-item" href="./yii-log-logger.html">Logger</a>
<a class="list-group-item" href="./yii-log-syslogtarget.html">SyslogTarget</a>
<a class="list-group-item" href="./yii-log-target.html">Target</a></div>
<a class="list-group-item" href="#navigation-7469" data-toggle="collapse" data-parent="#navigation">yii\mail <b class="caret"></b></a><div id="navigation-7469" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mail-basemailer.html">BaseMailer</a>
<a class="list-group-item" href="./yii-mail-basemessage.html">BaseMessage</a>
<a class="list-group-item" href="./yii-mail-mailevent.html">MailEvent</a>
<a class="list-group-item" href="./yii-mail-mailerinterface.html">MailerInterface</a>
<a class="list-group-item" href="./yii-mail-messageinterface.html">MessageInterface</a></div>
<a class="list-group-item" href="#navigation-7470" data-toggle="collapse" data-parent="#navigation">yii\mutex <b class="caret"></b></a><div id="navigation-7470" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mutex-dbmutex.html">DbMutex</a>
<a class="list-group-item" href="./yii-mutex-filemutex.html">FileMutex</a>
<a class="list-group-item" href="./yii-mutex-mutex.html">Mutex</a>
<a class="list-group-item" href="./yii-mutex-mysqlmutex.html">MysqlMutex</a>
<a class="list-group-item" href="./yii-mutex-pgsqlmutex.html">PgsqlMutex</a></div>
<a class="list-group-item active" href="#navigation-7471" data-toggle="collapse" data-parent="#navigation">yii\rbac <b class="caret"></b></a><div id="navigation-7471" class="submenu panel-collapse collapse in"><a class="list-group-item" href="./yii-rbac-assignment.html">Assignment</a>
<a class="list-group-item" href="./yii-rbac-basemanager.html">BaseManager</a>
<a class="list-group-item" href="./yii-rbac-checkaccessinterface.html">CheckAccessInterface</a>
<a class="list-group-item active" href="./yii-rbac-dbmanager.html">DbManager</a>
<a class="list-group-item" href="./yii-rbac-item.html">Item</a>
<a class="list-group-item" href="./yii-rbac-managerinterface.html">ManagerInterface</a>
<a class="list-group-item" href="./yii-rbac-permission.html">Permission</a>
<a class="list-group-item" href="./yii-rbac-phpmanager.html">PhpManager</a>
<a class="list-group-item" href="./yii-rbac-role.html">Role</a>
<a class="list-group-item" href="./yii-rbac-rule.html">Rule</a></div>
<a class="list-group-item" href="#navigation-7472" data-toggle="collapse" data-parent="#navigation">yii\rest <b class="caret"></b></a><div id="navigation-7472" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-rest-action.html">Action</a>
<a class="list-group-item" href="./yii-rest-activecontroller.html">ActiveController</a>
<a class="list-group-item" href="./yii-rest-controller.html">Controller</a>
<a class="list-group-item" href="./yii-rest-createaction.html">CreateAction</a>
<a class="list-group-item" href="./yii-rest-deleteaction.html">DeleteAction</a>
<a class="list-group-item" href="./yii-rest-indexaction.html">IndexAction</a>
<a class="list-group-item" href="./yii-rest-optionsaction.html">OptionsAction</a>
<a class="list-group-item" href="./yii-rest-serializer.html">Serializer</a>
<a class="list-group-item" href="./yii-rest-updateaction.html">UpdateAction</a>
<a class="list-group-item" href="./yii-rest-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-rest-viewaction.html">ViewAction</a></div>
<a class="list-group-item" href="#navigation-7473" data-toggle="collapse" data-parent="#navigation">yii\test <b class="caret"></b></a><div id="navigation-7473" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-test-activefixture.html">ActiveFixture</a>
<a class="list-group-item" href="./yii-test-arrayfixture.html">ArrayFixture</a>
<a class="list-group-item" href="./yii-test-baseactivefixture.html">BaseActiveFixture</a>
<a class="list-group-item" href="./yii-test-dbfixture.html">DbFixture</a>
<a class="list-group-item" href="./yii-test-fixture.html">Fixture</a>
<a class="list-group-item" href="./yii-test-fixturetrait.html">FixtureTrait</a>
<a class="list-group-item" href="./yii-test-initdbfixture.html">InitDbFixture</a></div>
<a class="list-group-item" href="#navigation-7474" data-toggle="collapse" data-parent="#navigation">yii\validators <b class="caret"></b></a><div id="navigation-7474" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-validators-booleanvalidator.html">BooleanValidator</a>
<a class="list-group-item" href="./yii-validators-comparevalidator.html">CompareValidator</a>
<a class="list-group-item" href="./yii-validators-datevalidator.html">DateValidator</a>
<a class="list-group-item" href="./yii-validators-defaultvaluevalidator.html">DefaultValueValidator</a>
<a class="list-group-item" href="./yii-validators-eachvalidator.html">EachValidator</a>
<a class="list-group-item" href="./yii-validators-emailvalidator.html">EmailValidator</a>
<a class="list-group-item" href="./yii-validators-existvalidator.html">ExistValidator</a>
<a class="list-group-item" href="./yii-validators-filevalidator.html">FileValidator</a>
<a class="list-group-item" href="./yii-validators-filtervalidator.html">FilterValidator</a>
<a class="list-group-item" href="./yii-validators-imagevalidator.html">ImageValidator</a>
<a class="list-group-item" href="./yii-validators-inlinevalidator.html">InlineValidator</a>
<a class="list-group-item" href="./yii-validators-ipvalidator.html">IpValidator</a>
<a class="list-group-item" href="./yii-validators-numbervalidator.html">NumberValidator</a>
<a class="list-group-item" href="./yii-validators-punycodeasset.html">PunycodeAsset</a>
<a class="list-group-item" href="./yii-validators-rangevalidator.html">RangeValidator</a>
<a class="list-group-item" href="./yii-validators-regularexpressionvalidator.html">RegularExpressionValidator</a>
<a class="list-group-item" href="./yii-validators-requiredvalidator.html">RequiredValidator</a>
<a class="list-group-item" href="./yii-validators-safevalidator.html">SafeValidator</a>
<a class="list-group-item" href="./yii-validators-stringvalidator.html">StringValidator</a>
<a class="list-group-item" href="./yii-validators-uniquevalidator.html">UniqueValidator</a>
<a class="list-group-item" href="./yii-validators-urlvalidator.html">UrlValidator</a>
<a class="list-group-item" href="./yii-validators-validationasset.html">ValidationAsset</a>
<a class="list-group-item" href="./yii-validators-validator.html">Validator</a></div>
<a class="list-group-item" href="#navigation-7475" data-toggle="collapse" data-parent="#navigation">yii\web <b class="caret"></b></a><div id="navigation-7475" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-web-application.html">Application</a>
<a class="list-group-item" href="./yii-web-assetbundle.html">AssetBundle</a>
<a class="list-group-item" href="./yii-web-assetconverter.html">AssetConverter</a>
<a class="list-group-item" href="./yii-web-assetconverterinterface.html">AssetConverterInterface</a>
<a class="list-group-item" href="./yii-web-assetmanager.html">AssetManager</a>
<a class="list-group-item" href="./yii-web-badrequesthttpexception.html">BadRequestHttpException</a>
<a class="list-group-item" href="./yii-web-cachesession.html">CacheSession</a>
<a class="list-group-item" href="./yii-web-compositeurlrule.html">CompositeUrlRule</a>
<a class="list-group-item" href="./yii-web-conflicthttpexception.html">ConflictHttpException</a>
<a class="list-group-item" href="./yii-web-controller.html">Controller</a>
<a class="list-group-item" href="./yii-web-cookie.html">Cookie</a>
<a class="list-group-item" href="./yii-web-cookiecollection.html">CookieCollection</a>
<a class="list-group-item" href="./yii-web-dbsession.html">DbSession</a>
<a class="list-group-item" href="./yii-web-erroraction.html">ErrorAction</a>
<a class="list-group-item" href="./yii-web-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-web-forbiddenhttpexception.html">ForbiddenHttpException</a>
<a class="list-group-item" href="./yii-web-gonehttpexception.html">GoneHttpException</a>
<a class="list-group-item" href="./yii-web-groupurlrule.html">GroupUrlRule</a>
<a class="list-group-item" href="./yii-web-headercollection.html">HeaderCollection</a>
<a class="list-group-item" href="./yii-web-htmlresponseformatter.html">HtmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-httpexception.html">HttpException</a>
<a class="list-group-item" href="./yii-web-identityinterface.html">IdentityInterface</a>
<a class="list-group-item" href="./yii-web-jqueryasset.html">JqueryAsset</a>
<a class="list-group-item" href="./yii-web-jsexpression.html">JsExpression</a>
<a class="list-group-item" href="./yii-web-jsonparser.html">JsonParser</a>
<a class="list-group-item" href="./yii-web-jsonresponseformatter.html">JsonResponseFormatter</a>
<a class="list-group-item" href="./yii-web-link.html">Link</a>
<a class="list-group-item" href="./yii-web-linkable.html">Linkable</a>
<a class="list-group-item" href="./yii-web-methodnotallowedhttpexception.html">MethodNotAllowedHttpException</a>
<a class="list-group-item" href="./yii-web-multifieldsession.html">MultiFieldSession</a>
<a class="list-group-item" href="./yii-web-notacceptablehttpexception.html">NotAcceptableHttpException</a>
<a class="list-group-item" href="./yii-web-notfoundhttpexception.html">NotFoundHttpException</a>
<a class="list-group-item" href="./yii-web-request.html">Request</a>
<a class="list-group-item" href="./yii-web-requestparserinterface.html">RequestParserInterface</a>
<a class="list-group-item" href="./yii-web-response.html">Response</a>
<a class="list-group-item" href="./yii-web-responseformatterinterface.html">ResponseFormatterInterface</a>
<a class="list-group-item" href="./yii-web-servererrorhttpexception.html">ServerErrorHttpException</a>
<a class="list-group-item" href="./yii-web-session.html">Session</a>
<a class="list-group-item" href="./yii-web-sessioniterator.html">SessionIterator</a>
<a class="list-group-item" href="./yii-web-toomanyrequestshttpexception.html">TooManyRequestsHttpException</a>
<a class="list-group-item" href="./yii-web-unauthorizedhttpexception.html">UnauthorizedHttpException</a>
<a class="list-group-item" href="./yii-web-unprocessableentityhttpexception.html">UnprocessableEntityHttpException</a>
<a class="list-group-item" href="./yii-web-unsupportedmediatypehttpexception.html">UnsupportedMediaTypeHttpException</a>
<a class="list-group-item" href="./yii-web-uploadedfile.html">UploadedFile</a>
<a class="list-group-item" href="./yii-web-urlmanager.html">UrlManager</a>
<a class="list-group-item" href="./yii-web-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-web-urlruleinterface.html">UrlRuleInterface</a>
<a class="list-group-item" href="./yii-web-user.html">User</a>
<a class="list-group-item" href="./yii-web-userevent.html">UserEvent</a>
<a class="list-group-item" href="./yii-web-view.html">View</a>
<a class="list-group-item" href="./yii-web-viewaction.html">ViewAction</a>
<a class="list-group-item" href="./yii-web-xmlresponseformatter.html">XmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-yiiasset.html">YiiAsset</a></div>
<a class="list-group-item" href="#navigation-7476" data-toggle="collapse" data-parent="#navigation">yii\widgets <b class="caret"></b></a><div id="navigation-7476" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-widgets-activefield.html">ActiveField</a>
<a class="list-group-item" href="./yii-widgets-activeform.html">ActiveForm</a>
<a class="list-group-item" href="./yii-widgets-activeformasset.html">ActiveFormAsset</a>
<a class="list-group-item" href="./yii-widgets-baselistview.html">BaseListView</a>
<a class="list-group-item" href="./yii-widgets-block.html">Block</a>
<a class="list-group-item" href="./yii-widgets-breadcrumbs.html">Breadcrumbs</a>
<a class="list-group-item" href="./yii-widgets-contentdecorator.html">ContentDecorator</a>
<a class="list-group-item" href="./yii-widgets-detailview.html">DetailView</a>
<a class="list-group-item" href="./yii-widgets-fragmentcache.html">FragmentCache</a>
<a class="list-group-item" href="./yii-widgets-inputwidget.html">InputWidget</a>
<a class="list-group-item" href="./yii-widgets-linkpager.html">LinkPager</a>
<a class="list-group-item" href="./yii-widgets-linksorter.html">LinkSorter</a>
<a class="list-group-item" href="./yii-widgets-listview.html">ListView</a>
<a class="list-group-item" href="./yii-widgets-maskedinput.html">MaskedInput</a>
<a class="list-group-item" href="./yii-widgets-maskedinputasset.html">MaskedInputAsset</a>
<a class="list-group-item" href="./yii-widgets-menu.html">Menu</a>
<a class="list-group-item" href="./yii-widgets-pjax.html">Pjax</a>
<a class="list-group-item" href="./yii-widgets-pjaxasset.html">PjaxAsset</a>
<a class="list-group-item" href="./yii-widgets-spaceless.html">Spaceless</a></div></div>    </div>
    <div class="col-md-9 api-content" role="main">
        <h1>Class yii\rbac\DbManager</h1>
<div class="top-nav">
    <a href="index.html">All Classes</a>
            | <a href="#properties">Properties</a>
                | <a href="#methods">Methods</a>
            </div>

<table class="summaryTable docClass table table-bordered">
    <colgroup>
        <col class="col-name" />
        <col class="col-value" />
    </colgroup>
            <tr><th>Inheritance</th><td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a> &raquo;
<a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a> &raquo;
<a href="yii-base-component.html">yii\base\Component</a> &raquo;
<a href="yii-base-object.html">yii\base\Object</a></td></tr>
                <tr><th>Implements</th><td><a href="yii-base-configurable.html">yii\base\Configurable</a>, <a href="yii-rbac-managerinterface.html">yii\rbac\ManagerInterface</a></td></tr>
                                    <tr><th>Available since version</th><td>2.0</td></tr>
                    <tr>
          <th>Source Code</th>
          <td><a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php">https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php</a></td>
        </tr>
    </table>

<div class="class-description">
    <p><strong>DbManager represents an authorization manager that stores authorization information in database.</strong></p>
    <p>The database connection is specified by <a href="yii-rbac-dbmanager.html#$db-detail">$db</a>. The database schema could be initialized by applying migration:</p>
<pre><code class="hljs nginx"><span class="hljs-title">yii</span> migrate --migrationPath=<span class="hljs-variable">@yii</span>/rbac/migrations/
</code></pre>
<p>If you don't want to use migration and need SQL instead, files for all databases are in migrations directory.</p>
<p>You may change the names of the tables used to store the authorization and rule data by setting <a href="yii-rbac-dbmanager.html#$itemTable-detail">$itemTable</a>,
<a href="yii-rbac-dbmanager.html#$itemChildTable-detail">$itemChildTable</a>, <a href="yii-rbac-dbmanager.html#$assignmentTable-detail">$assignmentTable</a> and <a href="yii-rbac-dbmanager.html#$ruleTable-detail">$ruleTable</a>.</p>

    </div>

<a id="properties"></a>

<div class="summary doc-property">
<h2>Public Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
        <tr id="$assignmentTable">
        <td><a href="yii-rbac-dbmanager.html#$assignmentTable-detail">$assignmentTable</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the table storing authorization item assignments.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="$behaviors">
        <td><a href="yii-base-component.html#$behaviors-detail">$behaviors</a></td>
        <td><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
        <td>List of behaviors attached to this component</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="$cache">
        <td><a href="yii-rbac-dbmanager.html#$cache-detail">$cache</a></td>
        <td><a href="yii-caching-cache.html">yii\caching\Cache</a>|<a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>The cache used to improve RBAC performance.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="$cacheKey">
        <td><a href="yii-rbac-dbmanager.html#$cacheKey-detail">$cacheKey</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The key used to store RBAC data in cache</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="$db">
        <td><a href="yii-rbac-dbmanager.html#$db-detail">$db</a></td>
        <td><a href="yii-db-connection.html">yii\db\Connection</a>|<a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></td>
        <td>The DB connection object or the application component ID of the DB connection.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="$defaultRoles">
        <td><a href="yii-rbac-basemanager.html#$defaultRoles-detail">$defaultRoles</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>A list of role names that are assigned to every user automatically without calling <a href="yii-rbac-managerinterface.html#assign()-detail">assign()</a>.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="$itemChildTable">
        <td><a href="yii-rbac-dbmanager.html#$itemChildTable-detail">$itemChildTable</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the table storing authorization item hierarchy.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="$itemTable">
        <td><a href="yii-rbac-dbmanager.html#$itemTable-detail">$itemTable</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the table storing authorization items.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr class="inherited" id="$permissions">
        <td><a href="yii-rbac-basemanager.html#$permissions-detail">$permissions</a></td>
        <td><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</td>
        <td>All permissions in the system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr class="inherited" id="$roles">
        <td><a href="yii-rbac-basemanager.html#$roles-detail">$roles</a></td>
        <td><a href="yii-rbac-role.html">yii\rbac\Role</a>[]</td>
        <td>All roles in the system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="$ruleTable">
        <td><a href="yii-rbac-dbmanager.html#$ruleTable-detail">$ruleTable</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The name of the table storing rules.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
        </table>
</div>

<div class="summary doc-property">
<h2>Protected Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
                                        <tr id="$items">
        <td><a href="yii-rbac-dbmanager.html#$items-detail">$items</a></td>
        <td><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</td>
        <td>All auth items (name =&gt; Item)</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="$parents">
        <td><a href="yii-rbac-dbmanager.html#$parents-detail">$parents</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>Auth item parent-child relationships (childName =&gt; list of parents)</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                        <tr id="$rules">
        <td><a href="yii-rbac-dbmanager.html#$rules-detail">$rules</a></td>
        <td><a href="yii-rbac-rule.html">yii\rbac\Rule</a>[]</td>
        <td>All auth rules (name =&gt; Rule)</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
    </table>
</div>

<a id="methods"></a>

<div class="summary doc-method">
<h2>Public Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="__call()">
        <td><a href="yii-base-component.html#__call()-detail">__call()</a></td>
        <td>Calls the named method which is not a class method.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__clone()">
        <td><a href="yii-base-component.html#__clone()-detail">__clone()</a></td>
        <td>This method is called after the object is created by cloning an existing one.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__construct()">
        <td><a href="yii-base-object.html#__construct()-detail">__construct()</a></td>
        <td>Constructor.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr class="inherited" id="__get()">
        <td><a href="yii-base-component.html#__get()-detail">__get()</a></td>
        <td>Returns the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__isset()">
        <td><a href="yii-base-component.html#__isset()-detail">__isset()</a></td>
        <td>Checks if a property is set, i.e. defined and not null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__set()">
        <td><a href="yii-base-component.html#__set()-detail">__set()</a></td>
        <td>Sets the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__unset()">
        <td><a href="yii-base-component.html#__unset()-detail">__unset()</a></td>
        <td>Sets a component property to be null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="add()">
        <td><a href="yii-rbac-basemanager.html#add()-detail">add()</a></td>
        <td>Adds a role, permission or rule to the RBAC system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="addChild()">
        <td><a href="yii-rbac-dbmanager.html#addChild()-detail">addChild()</a></td>
        <td>Adds an item as a child of another item.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr id="assign()">
        <td><a href="yii-rbac-dbmanager.html#assign()-detail">assign()</a></td>
        <td>Assigns a role to a user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="attachBehavior()">
        <td><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a></td>
        <td>Attaches a behavior to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="attachBehaviors()">
        <td><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors()</a></td>
        <td>Attaches a list of behaviors to the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="behaviors()">
        <td><a href="yii-base-component.html#behaviors()-detail">behaviors()</a></td>
        <td>Returns a list of behaviors that this component should behave as.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="canAddChild()">
        <td><a href="yii-rbac-dbmanager.html#canAddChild()-detail">canAddChild()</a></td>
        <td>Checks the possibility of adding a child to parent</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="canGetProperty()">
        <td><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></td>
        <td>Returns a value indicating whether a property can be read.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canSetProperty()">
        <td><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></td>
        <td>Returns a value indicating whether a property can be set.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="checkAccess()">
        <td><a href="yii-rbac-dbmanager.html#checkAccess()-detail">checkAccess()</a></td>
        <td></td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr class="inherited" id="className()">
        <td><a href="yii-base-object.html#className()-detail">className()</a></td>
        <td>Returns the fully qualified name of this class.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr class="inherited" id="createPermission()">
        <td><a href="yii-rbac-basemanager.html#createPermission()-detail">createPermission()</a></td>
        <td>Creates a new Permission object.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr class="inherited" id="createRole()">
        <td><a href="yii-rbac-basemanager.html#createRole()-detail">createRole()</a></td>
        <td>Creates a new Role object.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr class="inherited" id="detachBehavior()">
        <td><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a></td>
        <td>Detaches a behavior from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="detachBehaviors()">
        <td><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors()</a></td>
        <td>Detaches all behaviors from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                <tr class="inherited" id="ensureBehaviors()">
        <td><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors()</a></td>
        <td>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                <tr id="getAssignment()">
        <td><a href="yii-rbac-dbmanager.html#getAssignment()-detail">getAssignment()</a></td>
        <td>Returns the assignment information regarding a role and a user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getAssignments()">
        <td><a href="yii-rbac-dbmanager.html#getAssignments()-detail">getAssignments()</a></td>
        <td>Returns all role assignment information for the specified user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="getBehavior()">
        <td><a href="yii-base-component.html#getBehavior()-detail">getBehavior()</a></td>
        <td>Returns the named behavior object.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="getBehaviors()">
        <td><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors()</a></td>
        <td>Returns all behaviors attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="getChildren()">
        <td><a href="yii-rbac-dbmanager.html#getChildren()-detail">getChildren()</a></td>
        <td>Returns the child permissions and/or roles.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                                    <tr class="inherited" id="getPermission()">
        <td><a href="yii-rbac-basemanager.html#getPermission()-detail">getPermission()</a></td>
        <td>Returns the named permission.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr class="inherited" id="getPermissions()">
        <td><a href="yii-rbac-basemanager.html#getPermissions()-detail">getPermissions()</a></td>
        <td>Returns all permissions in the system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="getPermissionsByRole()">
        <td><a href="yii-rbac-dbmanager.html#getPermissionsByRole()-detail">getPermissionsByRole()</a></td>
        <td>Returns all permissions that the specified role represents.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getPermissionsByUser()">
        <td><a href="yii-rbac-dbmanager.html#getPermissionsByUser()-detail">getPermissionsByUser()</a></td>
        <td>Returns all permissions that the user has.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="getRole()">
        <td><a href="yii-rbac-basemanager.html#getRole()-detail">getRole()</a></td>
        <td>Returns the named role.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr class="inherited" id="getRoles()">
        <td><a href="yii-rbac-basemanager.html#getRoles()-detail">getRoles()</a></td>
        <td>Returns all roles in the system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="getRolesByUser()">
        <td><a href="yii-rbac-dbmanager.html#getRolesByUser()-detail">getRolesByUser()</a></td>
        <td>Returns the roles that are assigned to the user via <a href="yii-rbac-dbmanager.html#assign()-detail">assign()</a>.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getRule()">
        <td><a href="yii-rbac-dbmanager.html#getRule()-detail">getRule()</a></td>
        <td>Returns the rule of the specified name.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getRules()">
        <td><a href="yii-rbac-dbmanager.html#getRules()-detail">getRules()</a></td>
        <td>Returns all rules available in the system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getUserIdsByRole()">
        <td><a href="yii-rbac-dbmanager.html#getUserIdsByRole()-detail">getUserIdsByRole()</a></td>
        <td>Returns all role assignment information for the specified role.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="hasChild()">
        <td><a href="yii-rbac-dbmanager.html#hasChild()-detail">hasChild()</a></td>
        <td>Returns a value indicating whether the child already exists for the parent.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="hasEventHandlers()">
        <td><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers()</a></td>
        <td>Returns a value indicating whether there is any handler attached to the named event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasMethod()">
        <td><a href="yii-base-component.html#hasMethod()-detail">hasMethod()</a></td>
        <td>Returns a value indicating whether a method is defined.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasProperty()">
        <td><a href="yii-base-component.html#hasProperty()-detail">hasProperty()</a></td>
        <td>Returns a value indicating whether a property is defined for this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="init()">
        <td><a href="yii-rbac-dbmanager.html#init()-detail">init()</a></td>
        <td>Initializes the application component.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="invalidateCache()">
        <td><a href="yii-rbac-dbmanager.html#invalidateCache()-detail">invalidateCache()</a></td>
        <td></td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="loadFromCache()">
        <td><a href="yii-rbac-dbmanager.html#loadFromCache()-detail">loadFromCache()</a></td>
        <td></td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr class="inherited" id="off()">
        <td><a href="yii-base-component.html#off()-detail">off()</a></td>
        <td>Detaches an existing event handler from this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="on()">
        <td><a href="yii-base-component.html#on()-detail">on()</a></td>
        <td>Attaches an event handler to an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                <tr class="inherited" id="remove()">
        <td><a href="yii-rbac-basemanager.html#remove()-detail">remove()</a></td>
        <td>Removes a role, permission or rule from the RBAC system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            <tr id="removeAll()">
        <td><a href="yii-rbac-dbmanager.html#removeAll()-detail">removeAll()</a></td>
        <td>Removes all authorization data, including roles, permissions, rules, and assignments.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeAllAssignments()">
        <td><a href="yii-rbac-dbmanager.html#removeAllAssignments()-detail">removeAllAssignments()</a></td>
        <td>Removes all role assignments.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                <tr id="removeAllPermissions()">
        <td><a href="yii-rbac-dbmanager.html#removeAllPermissions()-detail">removeAllPermissions()</a></td>
        <td>Removes all permissions.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeAllRoles()">
        <td><a href="yii-rbac-dbmanager.html#removeAllRoles()-detail">removeAllRoles()</a></td>
        <td>Removes all roles.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeAllRules()">
        <td><a href="yii-rbac-dbmanager.html#removeAllRules()-detail">removeAllRules()</a></td>
        <td>Removes all rules.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeChild()">
        <td><a href="yii-rbac-dbmanager.html#removeChild()-detail">removeChild()</a></td>
        <td>Removes a child from its parent.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeChildren()">
        <td><a href="yii-rbac-dbmanager.html#removeChildren()-detail">removeChildren()</a></td>
        <td>Removed all children form their parent.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr id="revoke()">
        <td><a href="yii-rbac-dbmanager.html#revoke()-detail">revoke()</a></td>
        <td>Revokes a role from a user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="revokeAll()">
        <td><a href="yii-rbac-dbmanager.html#revokeAll()-detail">revokeAll()</a></td>
        <td>Revokes all roles from a user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                <tr class="inherited" id="trigger()">
        <td><a href="yii-base-component.html#trigger()-detail">trigger()</a></td>
        <td>Triggers an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="update()">
        <td><a href="yii-rbac-basemanager.html#update()-detail">update()</a></td>
        <td>Updates the specified role, permission or rule in the system.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
            </table>
</div>

<div class="summary doc-method">
<h2>Protected Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
                                            <tr id="addItem()">
        <td><a href="yii-rbac-dbmanager.html#addItem()-detail">addItem()</a></td>
        <td>Adds an auth item to the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="addRule()">
        <td><a href="yii-rbac-dbmanager.html#addRule()-detail">addRule()</a></td>
        <td>Adds a rule to the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                                            <tr id="checkAccessFromCache()">
        <td><a href="yii-rbac-dbmanager.html#checkAccessFromCache()-detail">checkAccessFromCache()</a></td>
        <td>Performs access check for the specified user based on the data loaded from cache.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="checkAccessRecursive()">
        <td><a href="yii-rbac-dbmanager.html#checkAccessRecursive()-detail">checkAccessRecursive()</a></td>
        <td>Performs access check for the specified user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                                <tr id="detectLoop()">
        <td><a href="yii-rbac-dbmanager.html#detectLoop()-detail">detectLoop()</a></td>
        <td>Checks whether there is a loop in the authorization item hierarchy.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                <tr class="inherited" id="executeRule()">
        <td><a href="yii-rbac-basemanager.html#executeRule()-detail">executeRule()</a></td>
        <td>Executes the rule associated with the specified auth item.</td>
        <td><a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a></td>
    </tr>
                                <tr id="getChildrenList()">
        <td><a href="yii-rbac-dbmanager.html#getChildrenList()-detail">getChildrenList()</a></td>
        <td>Returns the children for every parent.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getChildrenRecursive()">
        <td><a href="yii-rbac-dbmanager.html#getChildrenRecursive()-detail">getChildrenRecursive()</a></td>
        <td>Recursively finds all children and grand children of the specified item.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getDirectPermissionsByUser()">
        <td><a href="yii-rbac-dbmanager.html#getDirectPermissionsByUser()-detail">getDirectPermissionsByUser()</a></td>
        <td>Returns all permissions that are directly assigned to user.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getInheritedPermissionsByUser()">
        <td><a href="yii-rbac-dbmanager.html#getInheritedPermissionsByUser()-detail">getInheritedPermissionsByUser()</a></td>
        <td>Returns all permissions that the user inherits from the roles assigned to him.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getItem()">
        <td><a href="yii-rbac-dbmanager.html#getItem()-detail">getItem()</a></td>
        <td>Returns the named auth item.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="getItems()">
        <td><a href="yii-rbac-dbmanager.html#getItems()-detail">getItems()</a></td>
        <td>Returns the items of the specified type.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                                                                                        <tr id="populateItem()">
        <td><a href="yii-rbac-dbmanager.html#populateItem()-detail">populateItem()</a></td>
        <td>Populates an auth item with the data fetched from database</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                        <tr id="removeAllItems()">
        <td><a href="yii-rbac-dbmanager.html#removeAllItems()-detail">removeAllItems()</a></td>
        <td>Removes all auth items of the specified type.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                                <tr id="removeItem()">
        <td><a href="yii-rbac-dbmanager.html#removeItem()-detail">removeItem()</a></td>
        <td>Removes an auth item from the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="removeRule()">
        <td><a href="yii-rbac-dbmanager.html#removeRule()-detail">removeRule()</a></td>
        <td>Removes a rule from the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr id="supportsCascadeUpdate()">
        <td><a href="yii-rbac-dbmanager.html#supportsCascadeUpdate()-detail">supportsCascadeUpdate()</a></td>
        <td>Returns a value indicating whether the database supports cascading update and delete.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
                    <tr id="updateItem()">
        <td><a href="yii-rbac-dbmanager.html#updateItem()-detail">updateItem()</a></td>
        <td>Updates an auth item in the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
            <tr id="updateRule()">
        <td><a href="yii-rbac-dbmanager.html#updateRule()-detail">updateRule()</a></td>
        <td>Updates a rule to the RBAC system.</td>
        <td><a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a></td>
    </tr>
    </table>
</div>

<a id="events"></a>

<a id="constants"></a>

<h2>Property Details</h2>

<div class="property-doc">

    <div class="detail-header h3" id="$assignmentTable-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$assignmentTable-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L57" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L57" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $assignmentTable        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The name of the table storing authorization item assignments. Defaults to "auth_assignment".</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$assignmentTable-detail">$assignmentTable</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'{{%auth_assignment}}'</span></div>


    <div class="detail-header h3" id="$cache-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$cache-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L81" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L81" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $cache        <span class="detail-header-tag small">
            public                                                property
                            (available since version 2.0.3)
                    </span>
    </div>

    <div class="doc-description">
        <p>The cache used to improve RBAC performance. This can be one of the following:</p>
<ul>
<li>an application component ID (e.g. <code>cache</code>)</li>
<li>a configuration array</li>
<li>a <a href="yii-caching-cache.html">yii\caching\Cache</a> object</li>
</ul>
<p>When this is not set, it means caching is not enabled.</p>
<p>Note that by enabling RBAC cache, all auth items, rules and auth item parent-child relationships will
be cached and loaded into memory. This will improve the performance of RBAC permission check. However,
it does require extra memory and as a result may not be appropriate if your RBAC system contains too many
auth items. You should seek other RBAC implementations (e.g. RBAC based on Redis storage) in this case.</p>
<p>Also note that if you modify RBAC items, rules or parent-child relationships from outside of this component,
you have to manually call <a href="yii-rbac-dbmanager.html#invalidateCache()-detail">invalidateCache()</a> to ensure data consistency.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-caching-cache.html">yii\caching\Cache</a>|<a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$cache-detail">$cache</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$cacheKey-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$cacheKey-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L87" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L87" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $cacheKey        <span class="detail-header-tag small">
            public                                                property
                            (available since version 2.0.3)
                    </span>
    </div>

    <div class="doc-description">
        <p>The key used to store RBAC data in cache</p>

        <p>See also <a href="yii-rbac-dbmanager.html#$cache-detail">$cache</a>.</p>    </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$cacheKey-detail">$cacheKey</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'rbac'</span></div>


    <div class="detail-header h3" id="$db-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$db-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L45" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L45" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $db        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The DB connection object or the application component ID of the DB connection.
After the DbManager object is created, if you want to change this property, you should only assign it
with a DB connection object.
Starting from version 2.0.2, this can also be a configuration array for creating the object.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-db-connection.html">yii\db\Connection</a>|<a href="http://www.php.net/language.types.array">array</a>|<a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$db-detail">$db</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'db'</span></div>


    <div class="detail-header h3" id="$itemChildTable-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$itemChildTable-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L53" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L53" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $itemChildTable        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The name of the table storing authorization item hierarchy. Defaults to "auth_item_child".</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$itemChildTable-detail">$itemChildTable</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'{{%auth_item_child}}'</span></div>


    <div class="detail-header h3" id="$itemTable-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$itemTable-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L49" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L49" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $itemTable        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The name of the table storing authorization items. Defaults to "auth_item".</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$itemTable-detail">$itemTable</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'{{%auth_item}}'</span></div>


    <div class="detail-header h3" id="$items-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$items-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L92" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L92" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $items        <span class="detail-header-tag small">
            protected                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>All auth items (name =&gt; Item)</p>

            </div>

    <div class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</span> <a href="yii-rbac-dbmanager.html#$items-detail">$items</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$parents-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$parents-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L100" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L100" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $parents        <span class="detail-header-tag small">
            protected                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Auth item parent-child relationships (childName =&gt; list of parents)</p>

            </div>

    <div class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-rbac-dbmanager.html#$parents-detail">$parents</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$ruleTable-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$ruleTable-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L61" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L61" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $ruleTable        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The name of the table storing rules. Defaults to "auth_rule".</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-rbac-dbmanager.html#$ruleTable-detail">$ruleTable</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'{{%auth_rule}}'</span></div>


    <div class="detail-header h3" id="$rules-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#$rules-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L96" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L96" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $rules        <span class="detail-header-tag small">
            protected                         <em>read-only</em>                         property
                    </span>
    </div>

    <div class="doc-description">
        <p>All auth rules (name =&gt; Rule)</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-rule.html">yii\rbac\Rule</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getRules()-detail">getRules</a></strong> ( )</div>

</div>
<h2>Method Details</h2>

<div class="method-doc">

    <div class="detail-header h3" id="addChild()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#addChild()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L691" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L691" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        addChild()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Adds an item as a child of another item.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#addChild()-detail">addChild</a></strong> ( <span style="color: #0000BB">$parent</span>, <span style="color: #0000BB">$child</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$child</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the child successfully added</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-exception.html">yii\base\Exception</a></td>
                  <td class="param-desc-col"><p>if the parent-child relationship already exists or if a loop has been detected.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="addItem()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#addItem()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L255" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L255" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        addItem()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Adds an auth item to the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#addItem()-detail">addItem</a></strong> ( <span style="color: #0000BB">$item</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$item</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The item to add</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the auth item is successfully added to the system</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the role or permission is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="addRule()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#addRule()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L341" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L341" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        addRule()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Adds a rule to the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#addRule()-detail">addRule</a></strong> ( <span style="color: #0000BB">$rule</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$rule</span></td>
                  <td class="param-type-col"><a href="yii-rbac-rule.html">yii\rbac\Rule</a></td>
                  <td class="param-desc-col"><p>The rule to add</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the rule is successfully added to the system</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the rule is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="assign()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#assign()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L793" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L793" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        assign()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Assigns a role to a user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a></span> <strong><a href="yii-rbac-dbmanager.html#assign()-detail">assign</a></strong> ( <span style="color: #0000BB">$role</span>, <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$role</span></td>
                  <td class="param-type-col"><a href="yii-rbac-role.html">yii\rbac\Role</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a></td>
                  <td class="param-desc-col"><p>The role assignment information.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if the role has already been assigned to the user</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="canAddChild()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#canAddChild()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L683" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L683" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        canAddChild()
        <span class="detail-header-tag small">
            public                                    method
                            (available since version 2.0.8)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Checks the possibility of adding a child to parent</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#canAddChild()-detail">canAddChild</a></strong> ( <span style="color: #0000BB">$parent</span>, <span style="color: #0000BB">$child</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The parent item</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$child</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The child item to be added to the hierarchy</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Possibility of adding</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="checkAccess()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#checkAccess()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L119" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L119" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        checkAccess()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#checkAccess()-detail">checkAccess</a></strong> ( <span style="color: #0000BB">$userId</span>, <span style="color: #0000BB">$permissionName</span>, <span style="color: #0000BB">$params&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$permissionName</span></td>
                  <td class="param-type-col"></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$params</span></td>
                  <td class="param-type-col"></td>
                  <td class="param-desc-col"></td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="checkAccessFromCache()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#checkAccessFromCache()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L143" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L143" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        checkAccessFromCache()
        <span class="detail-header-tag small">
            protected                                    method
                            (available since version 2.0.3)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Performs access check for the specified user based on the data loaded from cache.</strong></p>

        <p>This method is internally called by <a href="yii-rbac-dbmanager.html#checkAccess()-detail">checkAccess()</a> when <a href="yii-rbac-dbmanager.html#$cache-detail">$cache</a> is enabled.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#checkAccessFromCache()-detail">checkAccessFromCache</a></strong> ( <span style="color: #0000BB">$user</span>, <span style="color: #0000BB">$itemName</span>, <span style="color: #0000BB">$params</span>, <span style="color: #0000BB">$assignments</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$user</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID. This should can be either an integer or a string representing
the unique identifier of a user. See <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$itemName</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the operation that need access check</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$params</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Name-value pairs that would be passed to rules associated
with the tasks and roles assigned to the user. A param with name 'user' is added to this array,
which holds the value of <code>$userId</code>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$assignments</span></td>
                  <td class="param-type-col"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</td>
                  <td class="param-desc-col"><p>The assignments to the specified user</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the operations can be performed by the user.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="checkAccessRecursive()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#checkAccessRecursive()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L184" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L184" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        checkAccessRecursive()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Performs access check for the specified user.</strong></p>

        <p>This method is internally called by <a href="yii-rbac-dbmanager.html#checkAccess()-detail">checkAccess()</a>.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#checkAccessRecursive()-detail">checkAccessRecursive</a></strong> ( <span style="color: #0000BB">$user</span>, <span style="color: #0000BB">$itemName</span>, <span style="color: #0000BB">$params</span>, <span style="color: #0000BB">$assignments</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$user</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID. This should can be either an integer or a string representing
the unique identifier of a user. See <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$itemName</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the operation that need access check</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$params</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Name-value pairs that would be passed to rules associated
with the tasks and roles assigned to the user. A param with name 'user' is added to this array,
which holds the value of <code>$userId</code>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$assignments</span></td>
                  <td class="param-type-col"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</td>
                  <td class="param-desc-col"><p>The assignments to the specified user</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the operations can be performed by the user.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="detectLoop()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#detectLoop()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L777" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L777" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        detectLoop()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Checks whether there is a loop in the authorization item hierarchy.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#detectLoop()-detail">detectLoop</a></strong> ( <span style="color: #0000BB">$parent</span>, <span style="color: #0000BB">$child</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The parent item</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$child</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The child item to be added to the hierarchy</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether a loop exists</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getAssignment()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getAssignment()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L633" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L633" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getAssignment()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the assignment information regarding a role and a user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-rbac-assignment.html">yii\rbac\Assignment</a></span> <strong><a href="yii-rbac-dbmanager.html#getAssignment()-detail">getAssignment</a></strong> ( <span style="color: #0000BB">$roleName</span>, <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$roleName</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The role name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-rbac-assignment.html">yii\rbac\Assignment</a></td>
                  <td class="param-desc-col"><p>The assignment information. Null is returned if
the role is not assigned to the user.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getAssignments()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getAssignments()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L657" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L657" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getAssignments()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all role assignment information for the specified user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getAssignments()-detail">getAssignments</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</td>
                  <td class="param-desc-col"><p>The assignments indexed by role names. An empty array will be
returned if there is no role assigned to the user.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getChildren()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getChildren()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L756" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L756" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getChildren()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the child permissions and/or roles.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getChildren()-detail">getChildren</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The parent name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</td>
                  <td class="param-desc-col"><p>The child permissions and/or roles</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getChildrenList()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getChildrenList()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L569" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L569" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getChildrenList()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the children for every parent.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <strong><a href="yii-rbac-dbmanager.html#getChildrenList()-detail">getChildrenList</a></strong> ( )</td></tr>
                                                <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The children list. Each array key is a parent item name,
and the corresponding array value is a list of child item names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getChildrenRecursive()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getChildrenRecursive()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L585" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L585" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getChildrenRecursive()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Recursively finds all children and grand children of the specified item.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#getChildrenRecursive()-detail">getChildrenRecursive</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$childrenList</span>, <b>&</b><span style="color: #0000BB">$result</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the item whose children are to be looked for.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$childrenList</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The child list built via <a href="yii-rbac-dbmanager.html#getChildrenList()-detail">getChildrenList()</a></p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$result</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The children and grand children (in array keys)</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="getDirectPermissionsByUser()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getDirectPermissionsByUser()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L516" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L516" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getDirectPermissionsByUser()
        <span class="detail-header-tag small">
            protected                                    method
                            (available since version 2.0.7)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all permissions that are directly assigned to user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getDirectPermissionsByUser()-detail">getDirectPermissionsByUser</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</td>
                  <td class="param-desc-col"><p>All direct permissions that the user has. The array is indexed by the permission names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getInheritedPermissionsByUser()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getInheritedPermissionsByUser()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L537" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L537" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getInheritedPermissionsByUser()
        <span class="detail-header-tag small">
            protected                                    method
                            (available since version 2.0.7)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all permissions that the user inherits from the roles assigned to him.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getInheritedPermissionsByUser()-detail">getInheritedPermissionsByUser</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</td>
                  <td class="param-desc-col"><p>All inherited permissions that the user has. The array is indexed by the permission names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getItem()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getItem()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L217" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L217" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getItem()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the named auth item.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-item.html">yii\rbac\Item</a></span> <strong><a href="yii-rbac-dbmanager.html#getItem()-detail">getItem</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The auth item name.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The auth item corresponding to the specified name. Null is returned if no such item.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getItems()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getItems()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L413" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L413" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getItems()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the items of the specified type.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getItems()-detail">getItems</a></strong> ( <span style="color: #0000BB">$type</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$type</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The auth item type (either <a href="yii-rbac-item.html#TYPE_ROLE-detail">yii\rbac\Item::TYPE_ROLE</a> or <a href="yii-rbac-item.html#TYPE_PERMISSION-detail">yii\rbac\Item::TYPE_PERMISSION</a></p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a>[]</td>
                  <td class="param-desc-col"><p>The auth items of the specified type.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getPermissionsByRole()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getPermissionsByRole()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L476" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L476" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getPermissionsByRole()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all permissions that the specified role represents.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getPermissionsByRole()-detail">getPermissionsByRole</a></strong> ( <span style="color: #0000BB">$roleName</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$roleName</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The role name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</td>
                  <td class="param-desc-col"><p>All permissions that the role represents. The array is indexed by the permission names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getPermissionsByUser()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getPermissionsByUser()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L498" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L498" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getPermissionsByUser()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all permissions that the user has.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getPermissionsByUser()-detail">getPermissionsByUser</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-permission.html">yii\rbac\Permission</a>[]</td>
                  <td class="param-desc-col"><p>All permissions that the user has. The array is indexed by the permission names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getRolesByUser()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getRolesByUser()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L454" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L454" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getRolesByUser()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the roles that are assigned to the user via <a href="yii-rbac-dbmanager.html#assign()-detail">assign()</a>.</strong></p>

        <p>Note that child roles that are not assigned directly to the user will not be returned.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-role.html">yii\rbac\Role</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getRolesByUser()-detail">getRolesByUser</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-role.html">yii\rbac\Role</a>[]</td>
                  <td class="param-desc-col"><p>All roles directly assigned to the user. The array is indexed by the role names.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getRule()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getRule()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L598" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L598" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getRule()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the rule of the specified name.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-rbac-rule.html">yii\rbac\Rule</a></span> <strong><a href="yii-rbac-dbmanager.html#getRule()-detail">getRule</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The rule name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-rbac-rule.html">yii\rbac\Rule</a></td>
                  <td class="param-desc-col"><p>The rule object, or null if the specified name does not correspond to a rule.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getRules()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getRules()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L614" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L614" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getRules()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all rules available in the system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-rule.html">yii\rbac\Rule</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getRules()-detail">getRules</a></strong> ( )</td></tr>
                                                <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-rule.html">yii\rbac\Rule</a>[]</td>
                  <td class="param-desc-col"><p>The rules indexed by the rule names</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getUserIdsByRole()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#getUserIdsByRole()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L973" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L973" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getUserIdsByRole()
        <span class="detail-header-tag small">
            public                                    method
                            (available since version 2.0.7)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all role assignment information for the specified role.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</span> <strong><a href="yii-rbac-dbmanager.html#getUserIdsByRole()-detail">getUserIdsByRole</a></strong> ( <span style="color: #0000BB">$roleName</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$roleName</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-assignment.html">yii\rbac\Assignment</a>[]</td>
                  <td class="param-desc-col"><p>The assignments. An empty array will be
returned if role is not assigned to any user.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="hasChild()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#hasChild()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L745" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L745" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        hasChild()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether the child already exists for the parent.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#hasChild()-detail">hasChild</a></strong> ( <span style="color: #0000BB">$parent</span>, <span style="color: #0000BB">$child</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$child</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether <code>$child</code> is already a child of <code>$parent</code></p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="init()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#init()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L107" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L107" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        init()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Initializes the application component.</strong></p>

        <p>This method overrides the parent implementation by establishing the database connection.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#init()-detail">init</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="invalidateCache()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#invalidateCache()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L921" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L921" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        invalidateCache()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#invalidateCache()-detail">invalidateCache</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="loadFromCache()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#loadFromCache()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L931" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L931" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        loadFromCache()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#loadFromCache()-detail">loadFromCache</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="populateItem()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#populateItem()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L432" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L432" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        populateItem()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Populates an auth item with the data fetched from database</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="yii-rbac-item.html">yii\rbac\Item</a></span> <strong><a href="yii-rbac-dbmanager.html#populateItem()-detail">populateItem</a></strong> ( <span style="color: #0000BB">$row</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$row</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The data from the auth item table</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The populated auth item instance (either Role or Permission)</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="removeAll()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAll()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L842" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L842" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAll()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all authorization data, including roles, permissions, rules, and assignments.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAll()-detail">removeAll</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="removeAllAssignments()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAllAssignments()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L916" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L916" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAllAssignments()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all role assignments.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAllAssignments()-detail">removeAllAssignments</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="removeAllItems()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAllItems()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L871" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L871" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAllItems()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all auth items of the specified type.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAllItems()-detail">removeAllItems</a></strong> ( <span style="color: #0000BB">$type</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$type</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The auth item type (either Item::TYPE_PERMISSION or Item::TYPE_ROLE)</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="removeAllPermissions()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAllPermissions()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L854" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L854" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAllPermissions()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all permissions.</strong></p>

        <p>All parent child relations will be adjusted accordingly.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAllPermissions()-detail">removeAllPermissions</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="removeAllRoles()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAllRoles()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L862" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L862" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAllRoles()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all roles.</strong></p>

        <p>All parent child relations will be adjusted accordingly.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAllRoles()-detail">removeAllRoles</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="removeAllRules()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeAllRules()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L900" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L900" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeAllRules()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes all rules.</strong></p>

        <p>All roles and permissions which have rules will be adjusted accordingly.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-rbac-dbmanager.html#removeAllRules()-detail">removeAllRules</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="removeChild()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeChild()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L717" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L717" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeChild()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes a child from its parent.</strong></p>

        <p>Note, the child item is not deleted. Only the parent-child relationship is removed.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#removeChild()-detail">removeChild</a></strong> ( <span style="color: #0000BB">$parent</span>, <span style="color: #0000BB">$child</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$child</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the removal is successful</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="removeChildren()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeChildren()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L731" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L731" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeChildren()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removed all children form their parent.</strong></p>

        <p>Note, the children items are not deleted. Only the parent-child relationships are removed.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#removeChildren()-detail">removeChildren</a></strong> ( <span style="color: #0000BB">$parent</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$parent</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the removal is successful</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="removeItem()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeItem()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L283" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L283" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeItem()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes an auth item from the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#removeItem()-detail">removeItem</a></strong> ( <span style="color: #0000BB">$item</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$item</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The item to remove</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the role or permission is successfully removed</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the role or permission is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="removeRule()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#removeRule()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L393" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L393" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        removeRule()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Removes a rule from the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#removeRule()-detail">removeRule</a></strong> ( <span style="color: #0000BB">$rule</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$rule</span></td>
                  <td class="param-type-col"><a href="yii-rbac-rule.html">yii\rbac\Rule</a></td>
                  <td class="param-desc-col"><p>The rule to remove</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the rule is successfully removed</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the rule is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="revoke()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#revoke()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L814" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L814" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        revoke()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Revokes a role from a user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#revoke()-detail">revoke</a></strong> ( <span style="color: #0000BB">$role</span>, <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$role</span></td>
                  <td class="param-type-col"><a href="yii-rbac-role.html">yii\rbac\Role</a></td>
                  <td class="param-desc-col"></td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.integer">integer</a></td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the revoking is successful</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="revokeAll()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#revokeAll()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L828" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L828" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        revokeAll()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Revokes all roles from a user.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#revokeAll()-detail">revokeAll</a></strong> ( <span style="color: #0000BB">$userId</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$userId</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The user ID (see <a href="yii-web-user.html#$id-detail">yii\web\User::$id</a>)</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the revoking is successful</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="supportsCascadeUpdate()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#supportsCascadeUpdate()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L247" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L247" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        supportsCascadeUpdate()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether the database supports cascading update and delete.</strong></p>

        <p>The default implementation will return false for SQLite database and true for all other databases.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#supportsCascadeUpdate()-detail">supportsCascadeUpdate</a></strong> ( )</td></tr>
                                                <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the database supports cascading update and delete.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="updateItem()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#updateItem()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L306" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L306" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        updateItem()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Updates an auth item in the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#updateItem()-detail">updateItem</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$item</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the item being updated</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$item</span></td>
                  <td class="param-type-col"><a href="yii-rbac-item.html">yii\rbac\Item</a></td>
                  <td class="param-desc-col"><p>The updated item</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the auth item is successfully updated</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the role or permission is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="updateRule()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-rbac-dbmanager.html#updateRule()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/rbac/DbManager.php#L366" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L366" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        updateRule()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Updates a rule to the RBAC system.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-rbac-dbmanager.html#updateRule()-detail">updateRule</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$rule</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the rule being updated</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$rule</span></td>
                  <td class="param-type-col"><a href="yii-rbac-rule.html">yii\rbac\Rule</a></td>
                  <td class="param-desc-col"><p>The updated rule</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the rule is successfully updated</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="http://www.php.net/class.exception">Exception</a></td>
                  <td class="param-desc-col"><p>if data validation or saving fails (such as the name of the rule is not unique)</p>
</td>
                </tr>
                        </table>

<!--	-->
</div>
        </div>
</div>

<script type="text/javascript">
    /*<![CDATA[*/
    $("a.toggle").on('click', function () {
        var $this = $(this);
        if ($this.hasClass('properties-hidden')) {
            $this.text($this.text().replace(/Show/,'Hide'));
            $this.parents(".summary").find(".inherited").show();
            $this.removeClass('properties-hidden');
        } else {
            $this.text($this.text().replace(/Hide/,'Show'));
            $this.parents(".summary").find(".inherited").hide();
            $this.addClass('properties-hidden');
        }

        return false;
    });
    /*
     $(".sourceCode a.show").toggle(function () {
     $(this).text($(this).text().replace(/show/,'hide'));
     $(this).parents(".sourceCode").find("div.code").show();
     },function () {
     $(this).text($(this).text().replace(/hide/,'show'));
     $(this).parents(".sourceCode").find("div.code").hide();
     });
     $("a.sourceLink").click(function () {
     $(this).attr('target','_blank');
     });
     */
    /*]]>*/
</script>


</div>

<footer class="footer">
        <p class="pull-right"><small>Page generated on Sat, 09 Jul 2016 12:15:46 +0000</small></p>
    Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></footer>

<script type="text/javascript">jQuery(document).ready(function () {
    var shiftWindow = function () { scrollBy(0, -50) };
    if (location.hash) setTimeout(shiftWindow, 1);
    window.addEventListener("hashchange", shiftWindow);
var element = document.createElement("script");
element.src = "./jssearch.index.js";
document.body.appendChild(element);

var searchBox = $('#searchbox');

// search when typing in search field
searchBox.on("keyup", function(event) {
    var query = $(this).val();

    if (query == '' || event.which == 27) {
        $('#search-resultbox').hide();
        return;
    } else if (event.which == 13) {
        var selectedLink = $('#search-resultbox a.selected');
        if (selectedLink.length != 0) {
            document.location = selectedLink.attr('href');
            return;
        }
    } else if (event.which == 38 || event.which == 40) {
        $('#search-resultbox').show();

        var selected = $('#search-resultbox a.selected');
        if (selected.length == 0) {
            $('#search-results').find('a').first().addClass('selected');
        } else {
            var next;
            if (event.which == 40) {
                next = selected.parent().next().find('a').first();
            } else {
                next = selected.parent().prev().find('a').first();
            }
            if (next.length != 0) {
                var resultbox = $('#search-results');
                var position = next.position();

//              TODO scrolling is buggy and jumps around
//                resultbox.scrollTop(Math.floor(position.top));
//                console.log(position.top);

                selected.removeClass('selected');
                next.addClass('selected');
            }
        }

        return;
    }
    $('#search-resultbox').show();
    $('#search-results').html('<li><span class="no-results">No results</span></li>');

    var result = jssearch.search(query);

    if (result.length > 0) {
        var i = 0;
        var resHtml = '';

        for (var key in result) {
            if (i++ > 20) {
                break;
            }
            resHtml = resHtml +
            '<li><a href="' + result[key].file.u.substr(3) +'"><span class="title">' + result[key].file.t + '</span>' +
            '<span class="description">' + result[key].file.d + '</span></a></li>';
        }
        $('#search-results').html(resHtml);
    }
});

// hide the search results on ESC
$(document).on("keyup", function(event) { if (event.which == 27) { $('#search-resultbox').hide(); } });
// hide search results on click to document
$(document).bind('click', function (e) { $('#search-resultbox').hide(); });
// except the following:
searchBox.bind('click', function(e) { e.stopPropagation(); });
$('#search-resultbox').bind('click', function(e) { e.stopPropagation(); });

});</script></body>
</html>
